package thread;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/*
 * @author zzr
 * @date: 2025/04/16  21:35
 * @description:
 */
public class Thread18 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> blockingQueue = new ArrayBlockingQueue<>(100);

        blockingQueue.put("hello");
        String t = blockingQueue.take();
        System.out.println(t);
    }
}
